{% extends "djfacet/base.html" %}


{# {% load extrafilters %} #}




{% block header %}
	
			
			{% include "djfacet/header.html" %}


			<p id="layoutdims">
									
					{% if  query_filtersBuffer %}
						&nbsp;&nbsp;&nbsp;&nbsp;
						You searched for: 
						
						{% for facetValue in  query_filtersBuffer %}

							<strong>{{facetValue.displayname}}</strong>&nbsp;
							{% if not forloop.last %}
								 &amp;&amp;  
							{% endif %}

						{% endfor %}
												
					{% endif %}

					&nbsp;&nbsp;&nbsp;&nbsp;
					The active result type is: <strong>{{result_typeObj.label|capfirst}} </strong>
									
					&nbsp;&nbsp;&nbsp;&nbsp;
					Switch to result type:

					{% for test_result_type in result_types %}
						{% ifnotequal test_result_type.uniquename  result_typeObj.uniquename %}
											<a href="?resulttype={{test_result_type.uniquename}}{{newurl_stub}}" id="{{test_result_type.uniquename}}" >{{test_result_type.label|capfirst}}</a>&nbsp;
											{% if not forloop.last %}
												 |
											{% endif %}
						{% endifnotequal %}

					{% endfor %}
				
				
			</p>
	
	
{% endblock %}




{% block controls_splash %}





<div id="facets_splash">

	{% for facetgroup, facet_and_values in facetgroups_and_facets reversed %}


	<div id="{{facetgroup.uniquename}}" class="facetgroup_vertical" style="background: #{{facetgroup.bkcolor}}">
		
	  <h3 id="{{facetgroup.uniquename}}" class="to_collapse {{facetgroup.uniquename}}_tip">
		<em>{{facetgroup.label|upper}}</em>  {# the facetgroup #}
	  </h3>  

		{% for tuple in facet_and_values %}  
		
		{% with tuple.0 as facet %}
		{% with tuple.1 as facetvalues %}
						
			<h4 id="{{facet.uniquename}}"  class="s6  {% if facet.mptt %} istreefacet  {% endif %}">
				 &gt;&gt;&gt; {{facet.name|capfirst}}
			</h4>	
	
						{# ajaxflag test removed #}
				
			{# {% block inner_facet_values %} #}

			{# INNER BLOCK TO BE UPDATED ON DEMAND in THE AJAX version of the FB #}
	
			<div class="facet">
	
		
				{% block inner_facet_values %}  								
				{# here goes the snippet_facet subtemplate #}

					{% if not ajaxflag %}
				
						{% if not twocolumnsflag %}

							{% include "djfacet/snippet_facet.html" %}

						{% else %}

							{# facetvalues are divided into two groups, for display purposes #}	
							{% include "djfacet/snippet_facet2cols.html" %}

						{% endif %}
					
					{% endif %}	

							
				{% endblock %}
				
		
			</div>
					
			{# {% endblock %} #}
			 

	{% endwith %}
	{% endwith %}
	{% endfor %}
	
	
	</div>  {# end of the facetgroup.uniquename div #}


{% endfor %}


</div>   {# end of the facets_list div #}







{% endblock %}   {# end of controls_splash #}








